<?php include 'site_header.php'; ?>
<?php include 'site_menu.php'; ?>

<?php
$id = "o";
?>
<link href="<?php echo base_url();?>assets/css/screen.css" rel="stylesheet" type="text/css" />

  <div id="rightPan">
  	<!--<h1>Sistem Online Pendaftaran Taruna Baru<br /><p>Sekolan Tinggi Meteorologi, Klimatologi, dan Geofisika - Jakarta</p> </h1>-->
	<h1><p></p> </h1>
	<div id="ambil">
	
	
				<!-- Content -->
				<div class="wrapper">
					

<?php if(!($valid)) { ?>
	Maaf, anda tidak bisa mengakses halaman ini.
	
	<br />
	<br />
	<a href="<?php echo base_url();?>"> Back </a>
<?php } else { ?>
		<?php 
		$row = $detail->row();
		?>

<script type="text/javascript">

    function PrintElem(elem)
    {
        Popup($(elem).html());
    }

    function Popup(data)
    {
        var mywindow = window.open('', 'new div', 'height=400,width=600');
        mywindow.document.write('<html><head><title>Tanda Peserta</title>');
        /*optional stylesheet*/ //mywindow.document.write('<link rel="stylesheet" href="main.css" type="text/css" />');
        mywindow.document.write('</head><body >');
        mywindow.document.write(data);
        mywindow.document.write('</body></html>');

        mywindow.print();
        mywindow.close();

        return true;
    }

</script>	
		<div id="formulir-ujian">
        <!--<table width="501" border="0">-->
        <table width="650" border="0">
              <tr>
                <td colspan="6" align="center"><span style="font-size:20px">KARTU TANDA PESERTA PTB-AMG-2014</span></td>
                <td colspan="2">&nbsp;</td>
                <td width="220" align="center">untuk calon taruna</td>
              </tr>
              <tr>
                <td width="158">Nomor Pendaftaran</td>
                <td colspan="3">: <?php echo $row->no_pendaftaran;?></td>
                <td width="1">&nbsp;</td>
                <td width="113">Alamat :</td>
                <td colspan="2">&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>Nama Calon</td>
                <td colspan="3">: <?php echo $row->nama;?></td>
                <td>&nbsp;</td>
                <td rowspan="2"><?php echo $row->alamat;?></td>
                <td colspan="2">&nbsp;</td>
                <td rowspan="2">&nbsp;</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td width="34">&nbsp;</td>
                <td width="39">&nbsp;</td>
                <td width="44">&nbsp;</td>
                <td>&nbsp;</td>
                <td colspan="2">&nbsp;</td>
              </tr>
              <tr>
                <!--<td>&nbsp;</td>-->
                <td colspan="4" align="center">Tanda Tangan Calon</td>
                <td>&nbsp;</td>
                <td>Kode Pos</td>
                <td colspan="2">&nbsp;</td>
                <td>: <?php echo $row->kodepos;?></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>Telpon</td>
                <td colspan="2">&nbsp;</td>
                <td>: <?php echo $row->telepon;?></td>
              </tr>
              <tr>
                <!--<td>&nbsp;</td>-->
                <td colspan="4" align="center">( .................. )</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td colspan="2">&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td colspan="4" align="center">TEST KEMAMPUAN DASAR</td>
                <td>&nbsp;</td>
                <td rowspan="3"><img width="113" height="137" src="<?php echo base_url().$row->foto;?>" ></td>
                <td colspan="2">&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              
              <tr>
              	<!--
                <td style="outline: thin solid black;" bgcolor="#999999">&nbsp;</td>
                -->
                <td colspan="4" style="outline: thin solid black;" align="center" bgcolor="#999999">28 April s/d 9 Mei 2014. Lihat di Ketentuan Pendaftaran butir E.2</td>
                <!--
                <td style="outline: thin solid black;" align="center" bgcolor="#999999">WITA</td>
                <td style="outline: thin solid black;" align="center" bgcolor="#999999">WIT</td>
                -->
                <td>&nbsp;</td>
                <td colspan="2">&nbsp;</td>
                <td align="center">&nbsp;</td>
                             
              </tr>
              <tr>
            <td colspan="4" align="center">TEST KEMAMPUAN AKADEMIK</td>
            <td>&nbsp;</td>
           <!--<td rowspan="3"><img width="113" height="137" src="<?php echo base_url().$row->foto;?>" ></td>
            <td colspan="2">&nbsp;</td>-->
            <td>&nbsp;</td>
          </tr>
          
          <tr>
          	<!--
            <td style="outline: thin solid black;" bgcolor="#999999">&nbsp;</td>
            -->
            <td colspan="4" style="outline: thin solid black;" align="center" bgcolor="#999999">Selasa, 3 Juni 2014</td>
            <!--
            <td style="outline: thin solid black;" align="center" bgcolor="#999999">WITA</td>
            <td style="outline: thin solid black;" align="center" bgcolor="#999999">WIT</td>
            -->
            <!--
            <td>&nbsp;</td>
            <td colspan="2">&nbsp;</td>
            <td align="center">&nbsp;</td>
            -->
          </tr>
              <!--
              <tr>
                <td style="outline: thin solid black;" bgcolor="#999999">Test Potensi Akademik</td>
                <td style="outline: thin solid black;" align="center" bgcolor="#CCCCCC">08.00</td>
                <td style="outline: thin solid black;" align="center" bgcolor="#CCCCCC">09.00</td>
                <td style="outline: thin solid black;" align="center" bgcolor="#CCCCCC">10.00</td>
                <td>&nbsp;</td>
                <td colspan="2">&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td style="outline: thin solid black;" bgcolor="#999999">Istirahat</td>
                <td style="outline: thin solid black;" align="center" bgcolor="#CCCCCC">10.30</td>
                <td style="outline: thin solid black;" align="center" bgcolor="#CCCCCC">11.30</td>
                <td style="outline: thin solid black;" align="center" bgcolor="#CCCCCC">12.30</td>
                <td>&nbsp;</td>
                <td colspan="2">&nbsp;</td>
                <td align="center">&nbsp;</td>
              </tr>
              <tr>
                <td style="outline: thin solid black;" height="9" bgcolor="#999999">Tes Bakat Skolastik</td>
                <td style="outline: thin solid black;" align="center" bgcolor="#CCCCCC">11.30</td>
                <td style="outline: thin solid black;" align="center" bgcolor="#CCCCCC">12.30</td>
                <td style="outline: thin solid black;" align="center" bgcolor="#CCCCCC">13.30</td>
                <td>&nbsp;</td>
                <td colspan="2">&nbsp;</td>
                <td align="center">&nbsp;</td>
              </tr>
              -->
              <tr>
                <td height="10">&nbsp;</td>
                <td align="center">&nbsp;</td>
                <td align="center">&nbsp;</td>
                <td align="center">&nbsp;</td>
                <td>&nbsp;</td>
                <td colspan="2">&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td colspan="6" rowspan="2">Perhatian : Tanda peserta harus dibawa pada waktu ujian dan pada waktu daftar ulang. Test Akademik menggunakan pensil 2B.</td>
                <td colspan="2">&nbsp;</td>
                <td align="center">Tanda Tangan Panitia</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td colspan="1">&nbsp;</td>
              </tr>
              <tr>
                <td colspan="4">Tanggal Terdaftar : <?php echo date('j-F-Y', strtotime($row->register_date));?></td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td colspan="2">&nbsp;</td>
                <td align="center">( .................. )</td>
              </tr>
        </table>
        <table width="650" border="0">
          <tr>
            <td colspan="6" align="center"><span style="font-size:20px">KARTU TANDA PESERTA PTB-AMG-2014</span></td>
            <td colspan="2">&nbsp;</td>
            <td width="220" align="center">untuk arsip panitia</td>
          </tr>
          <tr>
            <td width="158">Nomor Pendaftaran</td>
            <td colspan="3">: <?php echo $row->no_pendaftaran;?></td>
            <td width="1">&nbsp;</td>
            <td width="113">Alamat :</td>
            <td colspan="2">&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>Nama Calon</td>
            <td colspan="3">: <?php echo $row->nama;?></td>
            <td>&nbsp;</td>
            <td rowspan="2"><?php echo $row->alamat;?></td>
            <td colspan="2">&nbsp;</td>
            <td rowspan="2">&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td width="34">&nbsp;</td>
            <td width="39">&nbsp;</td>
            <td width="44">&nbsp;</td>
            <td>&nbsp;</td>
            <td colspan="2">&nbsp;</td>
          </tr>
          <tr>
            <!--<td>&nbsp;</td>-->
            <td colspan="4" align="center">Tanda Tangan Calon</td>
            <hr>
            <td>&nbsp;</td>
            <td>Kode Pos</td>
            <td colspan="2">&nbsp;</td>
            <td>: <?php echo $row->kodepos;?></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>Telpon</td>
            <td colspan="2">&nbsp;</td>
            <td>: <?php echo $row->telepon;?></td>
          </tr>
          <tr>
            <!--<td>&nbsp;</td>-->
            <td colspan="4" align="center">( .................. )</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td colspan="2">&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          
          <tr>
                <td colspan="4" align="center">TEST KEMAMPUAN DASAR</td>
                <td>&nbsp;</td>
                <td rowspan="3"><img width="113" height="137" src="<?php echo base_url().$row->foto;?>" ></td>
                <td colspan="2">&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              
              <tr>
              	<!--
                <td style="outline: thin solid black;" bgcolor="#999999">&nbsp;</td>
                -->
                <td colspan="4" style="outline: thin solid black;" align="center" bgcolor="#999999">28 April s/d 9 Mei 2014. Lihat di Ketentuan Pendaftaran butir E.2</td>
                <!--
                <td style="outline: thin solid black;" align="center" bgcolor="#999999">WITA</td>
                <td style="outline: thin solid black;" align="center" bgcolor="#999999">WIT</td>
                -->
                <td>&nbsp;</td>
                <td colspan="2">&nbsp;</td>
                <td align="center">&nbsp;</td>
                             
              </tr>
          <tr>
            <td colspan="4" align="center">TEST KEMAMPUAN AKADEMIK</td>
            <td>&nbsp;</td>
            <!--<td rowspan="3"><img width="113" height="137" src="<?php echo base_url().$row->foto;?>" ></td>
            <td colspan="2">&nbsp;</td>-->
            <td>&nbsp;</td>
          </tr>
          
          <tr>
          	<!--
            <td style="outline: thin solid black;" bgcolor="#999999">&nbsp;</td>
            -->
            <td colspan="4" style="outline: thin solid black;" align="center" bgcolor="#999999">Selasa, 3 Juni 2014</td>
            <!--
            <td style="outline: thin solid black;" align="center" bgcolor="#999999">WITA</td>
            <td style="outline: thin solid black;" align="center" bgcolor="#999999">WIT</td>
            -->
            <!--
            <td>&nbsp;</td>
            <td colspan="2">&nbsp;</td>
            <td align="center">&nbsp;</td>
            -->
          </tr>
          <!--
          <tr>
            <td style="outline: thin solid black;" bgcolor="#999999">Test Potensi Akademik</td>
            <td style="outline: thin solid black;" align="center" bgcolor="#CCCCCC">08.00</td>
            <td style="outline: thin solid black;" align="center" bgcolor="#CCCCCC">09.00</td>
            <td style="outline: thin solid black;" align="center" bgcolor="#CCCCCC">10.00</td>
            <td>&nbsp;</td>
            <td colspan="2">&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td style="outline: thin solid black;" bgcolor="#999999">Istirahat</td>
            <td style="outline: thin solid black;" align="center" bgcolor="#CCCCCC">10.30</td>
            <td style="outline: thin solid black;" align="center" bgcolor="#CCCCCC">11.30</td>
            <td style="outline: thin solid black;" align="center" bgcolor="#CCCCCC">12.30</td>
            <td>&nbsp;</td>
            <td colspan="2">&nbsp;</td>
            <td align="center">&nbsp;</td>
          </tr>
          <tr>
            <td style="outline: thin solid black;" height="9" bgcolor="#999999">Tes Bakat Skolastik</td>
            <td style="outline: thin solid black;" align="center" bgcolor="#CCCCCC">11.30</td>
            <td  style="outline: thin solid black;" align="center" bgcolor="#CCCCCC">12.30</td>
            <td style="outline: thin solid black;" align="center" bgcolor="#CCCCCC">13.30</td>
            <td>&nbsp;</td>
            <td colspan="2">&nbsp;</td>
            <td align="center">&nbsp;</td>
          </tr>
          -->
          <tr>
            <td height="10">&nbsp;</td>
            <td align="center">&nbsp;</td>
            <td align="center">&nbsp;</td>
            <td align="center">&nbsp;</td>
            <td>&nbsp;</td>
            <td colspan="2">&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td colspan="6" rowspan="2">Perhatian : Tanda peserta harus dibawa pada waktu ujian dan pada waktu daftar ulang. Test Akademik menggunakan pensil 2B.</td>
            <td colspan="2">&nbsp;</td>
            <td align="center">Tanda Tangan Panitia</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td colspan="1">&nbsp;</td>
          </tr>
          <tr>
            <td colspan="4">Tanggal Terdaftar : <?php echo date('j-F-Y', strtotime($row->register_date));?></td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td colspan="2">&nbsp;</td>
            <td align="center">( .................. )</td>
          </tr>
        </table>
		</div>

		<form>
		<!--<input type="button" value="Print" onclick="PrintElem('#formulir-ujian')" />-->
		<br />
		<a class="button" href="<?php echo '../ajax/printPdf/'.$row->no_pendaftaran;?>">Download Tanda Peserta</a>
		</form>
<?php } ?>
			</div>
	  </div>

</div>


  </div>
</div>
	  
<?php include 'site_footer.php'; ?>